package com.kaishengit.pojo;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="t_dealtype")
//@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Dealtype {
	private String dealtypeid;
	private String dealtype;
	private String color;
	private List<Deal> dealList;
	
	//set get
	public String getDealtype() {
		return dealtype;
	}
	
	@Id
	@GenericGenerator(name="PK",strategy="uuid")
	@GeneratedValue(generator="PK")
	public String getDealtypeid() {
		return dealtypeid;
	}
	public void setDealtypeid(String dealtypeid) {
		this.dealtypeid = dealtypeid;
	}
	public void setDealtype(String dealtype) {
		this.dealtype = dealtype;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	@OneToMany(mappedBy="dealtype")
	public List<Deal> getDealList() {
		return dealList;
	}

	public void setDealList(List<Deal> dealList) {
		this.dealList = dealList;
	}
	
	
	
	
}
